class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :name    , :limit => 40
      t.string :login   , :limit => 40
      t.string :salt              , :limit => 40
      t.string :crypted_password  , :limit => 40
      t.string :email   , :limit => 40
      t.belongs_to :forum_profile
      t.timestamps
    end
    add_index :users,:login,:unique => true
    add_index :users,:name
  end
  
  def self.down
    drop_table :users
  end
end
